﻿using System;
using System.Runtime.Serialization;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [DataContract(Namespace = "http://opcfoundation.org/webservices/XMLDA/1.0/")]
    public class SubscribeItemValue : System.ComponentModel.INotifyPropertyChanged {

        private ItemValue itemValueField;

        private int revisedSamplingRateField;

        private bool revisedSamplingRateFieldSpecified;

        [DataMember(Order = 0)]
        public ItemValue ItemValue {
            get {
                return this.itemValueField;
            }
            set {
                this.itemValueField = value;
                this.RaisePropertyChanged("ItemValue");
            }
        }

        [DataMember(Order = 1)]
        public int RevisedSamplingRate {
            get {
                return this.revisedSamplingRateField;
            }
            set {
                this.revisedSamplingRateField = value;
                this.RaisePropertyChanged("RevisedSamplingRate");
            }
        }

        [DataMember(Order = 2)]
        public bool RevisedSamplingRateSpecified {
            get {
                return this.revisedSamplingRateFieldSpecified;
            }
            set {
                this.revisedSamplingRateFieldSpecified = value;
                this.RaisePropertyChanged("RevisedSamplingRateSpecified");
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
